package com.d0325;

public class PrintArrayTest {
    public static void printArray(Integer[] arrs){
        for(Integer i:
        arrs){
            System.out.println(i);
        }
    }
    public static void printArray(String[] arrs){
        for(String i:
        arrs){
            System.out.println(i);
        }
    }
    public static void printArray(Double[] arrs){
        for (Double i:
        arrs){
            System.out.println(i);
        }
    }

    public static void main(String[] args) {
        Integer[] intArrs = {1,2,3,4,5};
        String[] strArrs = {"ab","cd","ef"};
        Double[] douArrs = {1.1,2.2,3.3,4.4};

        printArray(intArrs);
        printArray ( strArrs );
        printArray ( douArrs );
    }
}